#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Tomahawk.Runtime.Resources;
using Tomahawk.Resources.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
#endregion

namespace Tomahawk.Runtime.Audio
{
    public class AudioPackage : LoadableResource
    {
        #region Properties
        protected string resource = "";
        protected AudioBank audioBank = null;
        public AudioBank AudioBank { get { return audioBank; } }
        #endregion

        #region Initialization
        public AudioPackage(string resource)
        {
            this.resource = resource;
        }
        #endregion

        #region LoadableResource
        protected override bool OnLoad(GraphicsDevice graphics, ContentManager contentManager)
        {
            audioBank = contentManager.Load<AudioBank>(resource);
            if (audioBank == null)
            {
                return false;
            }

            return true;
        }
        #endregion
    }

}


